package com.qf.service;

import com.qf.mapper.UserMapper;
import com.qf.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("service2")
public class UserServiceImpl2 implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findALL() {
        System.out.println("======UserServiceImpl2是UserService接口的第二个实现类==============");
        List<User> list = userMapper.findUserAll();
        return list;
    }

}